<script>
	export default {
		globalData: {},
		onLaunch: function() {
			console.log('App Launch')

		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #F3F5F8;
	}

	view,
	text,
	input {
		box-sizing: border-box;
	}

	.wrap {
		width: 686rpx;
		margin-left: auto;
		margin-right: auto;
	}

	.clearfix:after {
		visibility: hidden;
		clear: both;
		display: block;
		content: "";
		height: 0;
	}

	/* 标题样式 1 */
	.mod-top {
		height: 50rpx;
		margin-top: 40rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;

		.left,
		.right {
			display: flex;
			align-items: center;
		}

		.mod-ico {
			width: 35rpx;
			height: 45rpx;
			margin-right: 10rpx;
		}

		.title {
			font-size: 36rpx;
			font-weight: 400;
			line-height: 50rpx;
			text-align: left;
			color: rgba(51, 51, 51, 1);
		}

		.t {
			font-size: 28rpx;
			font-weight: 400;
			line-height: 44rpx;
			text-align: right;
			color: rgba(59, 66, 92, 1);
		}

		.more-ico {
			width: 32rpx;
			height: 32rpx;
			margin-left: 8rpx;
		}
	}

	// 区域
	.card {
		background-color: #fff;
		border-radius: 16rpx;
	}

	// 默认列表1
	.list {
		overflow: hidden;

		.list-item {
			margin: 18rpx 27rpx 0;
			padding: 0 0 18rpx;
			border-bottom: 2rpx solid rgba(230, 230, 230, 1);

			&:first-child {
				margin-top: 40rpx;
			}

			&:last-child {
				padding-bottom: 32rpx;
				margin-bottom: 0;
				border-bottom: 0;
			}

			display: flex;
			align-items: center;
			gap: 20rpx;

			.item-img {
				width: 188rpx;
				height: 154rpx;
				border-radius: 16rpx;
			}

			.title {
				height: 80rpx;
				font-size: 28rpx;
				font-weight: 400;
				line-height: 40rpx;
				text-align: left;
				overflow: hidden;
				text-overflow: ellipsis;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 2;
			}

			.sub-info {
				line-height: 36rpx;
				margin-top: 18rpx;
				font-size: 24rpx;
				font-weight: 400;
				color: rgba(153, 153, 153, 1);
				display: flex;
				gap: 8rpx;
			}
		}
	}

	// 公共tab类
	.tab-btns {
		display: flex;
		justify-content: center;
		gap: 46rpx;

		.tab-btn-item {
			font-size: 32rpx;
			font-weight: 400;
			line-height: 44rpx;
			text-align: center;
			color: rgba(102, 102, 102, 1);

			&.on {
				color: rgba(232, 100, 10, 1);
			}
		}
	}
	
	// 公共头1
	.mod-top1 {
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: 92rpx;
	
		.left {
			position: relative;
			width: 486rpx;
			height: 92rpx;
	
			.pre {
				position: relative;
				height: 92rpx;
				padding: 0 32rpx;
				display: flex;
				align-items: center;
				z-index: 2;
	
				.left-ico {
					width: 35rpx;
					height: 45rpx;
					margin-right: 14rpx;
				}
	
				.title {
					height: 50.4rpx;
					line-height: 50.4rpx;
					font-size: 36rpx;
					font-weight: 700;
				}
	
				.tag {
					position: relative;
					height: 44rpx;
					margin-left: 30rpx;
	
					.tag-title {
						position: absolute;
						top: 0;
						left: 0;
						width: 122rpx;
						height: 44rpx;
						line-height: 44rpx;
						font-size: 24rpx;
						text-align: center;
						color: rgba(255, 255, 255, 1);
						font-weight: 400;
						z-index: 2;
					}
	
					.tag-bg {
						width: 122rpx;
						height: 44rpx;
					}
				}
			}
	
			.bg {
				position: absolute;
				width: 486rpx;
				height: 92rpx;
				top: 0rpx;
				z-index: 1;
			}
		}
	
		.right {
			padding: 0 34rpx;
			display: flex;
			align-items: center;
	
			.t {
				font-size: 28rpx;
				font-weight: 400;
				line-height: 44rpx;
				text-align: right;
				color: rgba(59, 66, 92, 1);
			}
	
			.more-ico {
				width: 32rpx;
				height: 32rpx;
				margin-left: 8rpx;
			}
		}
	}

	// 商品列表
	.goods-list {
		display: flex;
		flex-wrap: wrap;
		gap: 22rpx;

		.goods-item {
			width: 332rpx;
			margin-bottom: 10rpx;
			padding-bottom: 24rpx;
			border-radius: 22rpx;
			background-color: #fff;

			.goods-img {
				width: 332rpx;
				height: 322rpx;
				border-radius: 22rpx 22rpx 0rpx 0rpx;
			}

			.title {
				height: 80rpx;
				line-height: 40rpx;
				margin-top: 20rpx;
				padding: 0 24rpx;
				font-size: 28rpx;
				font-weight: 400;
				overflow: hidden;
				text-overflow: ellipsis;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 2;
			}

			.item-bottom {
				margin-top: 16rpx;
				padding: 0 24rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;

				.price {
					font-size: 24rpx;
					font-weight: 400;
					color: rgba(102, 102, 102, 1);

					.new {
						margin: 0 10rpx 0 4rpx;
						font-size: 36rpx;
						font-weight: 400;
					}

					.old {
						font-size: 20rpx;
						font-weight: 400;
						color: rgba(204, 204, 204, 1);
					}
				}

				.add-to-shopcar {
					width: 34rpx;
					height: 34rpx;
				}
			}
		}
	}
</style>